Hi all, my problem - i get this error msg : -R-E- DXL: <Line:2> null Folder parameter was passed into argument position 1 my code: Folder f = folder "\\Test" print name(f) what i need: output - "\Test" I tried it with "\\Test\\", "\\Test\\.", "\\Test." , "\\" "Test" - all doesent work Thank you :)
Edit: i need a Folder not a string or something ... meinhana - Mon Aug 08 03:08:30 EDT 2016 |
Re: Null Folder parameter I guess the only thing you did not try is the other slash - '/', which is what is required to get it to work.. ;) Also, note that if the folder is within a project, then the name should contain the path to its nearest parent project. That is, if folder Test is in a project by name TestProject, then the name of folder supplied should be /TestProject/Test. If it is not in a project, it should be the path to the root. You can't get the handle of folder with just the name of that folder. Hope that helps. |
Re: Null Folder parameter "Test" is a project - a "root project" directly under DOORS Database .. I try the normal slash "/" but isn't there a possibility to use the backslash "\" ?
|
Re: Null Folder parameter meinhana - Mon Aug 08 03:45:34 EDT 2016 "Test" is a project - a "root project" directly under DOORS Database .. I try the normal slash "/" but isn't there a possibility to use the backslash "\" ?
If it is a project, use project instead of folder key words
Use a single slash like: /Test |
Re: Null Folder parameter SudarshanRao - Mon Aug 08 03:22:46 EDT 2016 I guess the only thing you did not try is the other slash - '/', which is what is required to get it to work.. ;) Also, note that if the folder is within a project, then the name should contain the path to its nearest parent project. That is, if folder Test is in a project by name TestProject, then the name of folder supplied should be /TestProject/Test. If it is not in a project, it should be the path to the root. You can't get the handle of folder with just the name of that folder. Hope that helps. Well... im not happy with the solution but it works :) Thank you i use now the normal slash "/"
|
Re: Null Folder parameter meinhana - Mon Aug 08 08:10:17 EDT 2016 Well... im not happy with the solution but it works :) Thank you i use now the normal slash "/"
If you are not happy you can always give the solution back -- we try not to force anyone to do what they don't like. |
Re: Null Folder parameter DOORSHAM - Mon Aug 08 12:24:51 EDT 2016 If you are not happy you can always give the solution back -- we try not to force anyone to do what they don't like. Yes ofc, but there is no other solution :D No problem this solution is also good :) Thanks |